DEMO 2: Our hedgehog has finally escaped the maze and is safely back at his field! Let's help him draw a spiral in the grass to celebrate!

  • Click Run and watch the hedgehog draw a spiral.
  • Try changing the angle the hedgehog turns or the number of units it moves forward.
  • When you're finished, click Submit and Next to continue.

To navigate the page using the TAB key, first press ESC to exit the code editor.

sprite = codesters.Sprite("hedgehog") sprite.go_to(3, 3) sprite.set_size(.5) stage.set_background("field") sprite.pen_down() sprite.set_color("khaki") for counter in range(25): sprite.move_forward(4) sprite.turn_left(92)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)